package com.ontheroad.path.service;

import cn.modoumama.service.base.BaseService;
import com.ontheroad.path.model.PathSystemModel;
import com.ontheroad.path.model.PathUserModel;
import com.ontheroad.path.model.PoiModel;
import org.springframework.remoting.service.annotation.RemoteService;

import java.util.List;

/**
 * Created by kedong on 2017/7/30 0030.
 */
@RemoteService
public interface PathSysService extends BaseService<PathSystemModel, Long> {

    PoiModel savePoi(PoiModel poi);

    void updatePoi(PoiModel poi);

    PathSystemModel save(PathSystemModel systemModel);

    void deleteSysPathPointByPathId(Long id);

    PoiModel findPoiById(Long id);

    PathSystemModel findByTimestamp(Long timestamp);

    PoiModel findPoiByTimestamp(Long timestamp);

    List<PathSystemModel> findNearPath(Double lat, Double lng);
}
